package com.ruoyi.medicine.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品库存对象 medicine
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
public class Medicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 数量 */
    @Excel(name = "数量")
    private Long amount;

    /** 药品分类id */
    @Excel(name = "药品分类id")
    private Long categoryId;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private BigDecimal price;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 描述信息 */
    @Excel(name = "描述信息")
    private String description;

    /** 药品状态（0 停售 1起售） */
    @Excel(name = "药品状态", readConverterExp = "0=,停=售,1=起售")
    private Long status;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 保质期 */
    @Excel(name = "保质期")
    private Long expiration;

    /** 储存方法 */
    @Excel(name = "储存方法")
    private String save;

    /** 创建人 */
    private Long createUser;

    /** 修改人 */
    private Long updateUser;

    /** 配料 */
    private String ingredient;

    /** 产地 */
    private String origin;

    /** 生产企业 */
    private String company;

    /** 禁忌人群 */
    private String taboos;

    /** 适用人群 */
    private String suitable;

    /** 分类名称 */
    private String categoryName;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setExpiration(Long expiration) 
    {
        this.expiration = expiration;
    }

    public Long getExpiration() 
    {
        return expiration;
    }
    public void setSave(String save) 
    {
        this.save = save;
    }

    public String getSave() 
    {
        return save;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }
    public void setIngredient(String ingredient) 
    {
        this.ingredient = ingredient;
    }

    public String getIngredient() 
    {
        return ingredient;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setTaboos(String taboos) 
    {
        this.taboos = taboos;
    }

    public String getTaboos() 
    {
        return taboos;
    }
    public void setSuitable(String suitable) 
    {
        this.suitable = suitable;
    }

    public String getSuitable() 
    {
        return suitable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("amount", getAmount())
            .append("categoryId", getCategoryId())
            .append("price", getPrice())
            .append("image", getImage())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("specification", getSpecification())
            .append("expiration", getExpiration())
            .append("save", getSave())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("ingredient", getIngredient())
            .append("origin", getOrigin())
            .append("company", getCompany())
            .append("taboos", getTaboos())
            .append("suitable", getSuitable())
            .toString();
    }
}
